<?php

class GrupoEntidadeController extends TWin8{
    
    private $logic;

    public function __construct() {
        parent::__construct();
        $this->logic = new GrupoEntidadeLogic();
    }
    
    public function index(){
        $this->TPageSecondary('index');
    }
    
    public function listar(){
        $this->TPageSecondary('lista');
    }
    
    public function cadastrar(){
        
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "jquery.validate.js");
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "mask.js");
        $this->HTML->addJavaScript(PATH_JS_URL . $this->_controller . "/" . $this->_action . ".js");
        
        $objLogicMunicipio = new MunicipioLogic();
        $this->addDados('listMunicipio', TFormHelper::optionSelect($objLogicMunicipio->listar(null,"nome")));
        
        $this->TPageSecondary('cadastro');
    }
}

?>
